package com.jason.library.widget

import android.text.Editable
import android.text.TextWatcher

/**
 * Description:SimpleTextWatcher
 *
 * @author 陈宝阳
 * @create 2020/11/7 10:39
 */
open class SimpleTextWatcher : TextWatcher {
    override fun beforeTextChanged(
        charSequence: CharSequence,
        start: Int,
        count: Int,
        after: Int
    ) {
    }

    open fun onTextChanged() {}

    override fun onTextChanged(
        charSequence: CharSequence,
        start: Int,
        before: Int,
        count: Int
    ) {
        onTextChanged()
    }

    override fun afterTextChanged(editable: Editable) {}
}